package com.atguigu.spring5.bean1.collectiontype;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Student {

    // 1 数组类型属性
    private String[] testArray;
    // 2 list集合类型属性
    private List<String> testList;
    // 3 map集合类型属性
    private Map<String,String> testMap;
    // 4 set集合类型属性
    private Set<String> testSet;
    // 5 集合里面设置对象类型值
    private List<Course> courses;

    private List<String> friends;

    public void output(){
        System.out.println(Arrays.toString(testArray));
        System.out.println(testList);
        System.out.println(testMap);
        System.out.println(testSet);
        System.out.println(courses);
        System.out.println(friends);
    }

    public void setFriends(List<String> friends) {
        this.friends = friends;
    }

    public void setCourses(List<Course> courses) {
        this.courses = courses;
    }

    public void setTestArray(String[] testArray) {
        this.testArray = testArray;
    }

    public void setTestList(List<String> testList) {
        this.testList = testList;
    }

    public void setTestMap(Map<String, String> testMap) {
        this.testMap = testMap;
    }

    public void setTestSet(Set<String> testSet) {
        this.testSet = testSet;
    }
}
